package com.sell.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sell.entity.Members;
import com.sell.util.Pager;

public interface MembersService {
	/**
	 * 根据卡号获取会员对象
	 */
	public Members getBycardid(String cardid);
	/**
	 * 获取所有会员对象
	 */
	public List<Members> getAllMembers(Integer typeid,Integer num,String name,Pager pager) throws Exception;
	/**
     * 根据membersid获取会员
     * @return
     */
    Members getMemberByid(Integer membersid)throws Exception;
    /**
     * 添加会员
     */
    public int addMember(Members member) throws Exception;
    /**
     * 更新会员消费
     */
    public int updateMember(Double totalmoney,Integer integral,Integer membersid) throws Exception;
    /**
     * 更新会员类型
     */
    public void updatetypeid(Integer typeid,Integer membersid) throws Exception;
    /**
     * 更新会员
     */
    public int updateAll(Members members) throws Exception;
    /**
     * 删除会员
     */
    public int deleteMember(Integer membersid);
    /**
	 * 获取记录数
	 */
	int getAllCount(Integer typeid,Integer num,String name);
}
